<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="all">
    <meta name="author" content="qiniao@vip.qq.com">
    <meta name="Copyright" content="<?php echo $version; ?>">
    <meta name="keywords" content="{$sitekey}">
    <meta name="description" content="{$sitedesc}">
    <title>{$sitename},{$sitetitle}
    </title>
    <link type="text/css" rel="stylesheet" href="template/style/build/base.css" />
    <link type="text/css" rel="stylesheet" href="template/style/build/main.css" />
    <link type="text/css" rel="stylesheet" href="template/style/index.css" />
    <link type="text/css" rel="stylesheet" href="template/style/topic.css" />
	<link type="text/css" rel="stylesheet" href="template/style/ht.css" />
	<link rel="shortcut icon" href="template/images/favicon.ico" />
	<script src="inc/js/jquery.js"></script>
<script src="inc/js/jquery.flyout.js" type="text/javascript"></script>
<script src="inc/js/jquery.easing.1.2.js" type="text/javascript"></script> 	
<script type="text/javascript">
$(function() {
	$('#biuuu a').flyout();
	//$('#biuuu a').flyout({loadingSrc:'thumb-loading.gif',outEase:'easeInCirc',inEase:'easeOutBounce'});
	//$('#biuuu a').flyout({loadingSrc:'thumb-loading.gif',outEase:'easeOutQuad',inEase:'easeInBack',loader:'loader2',widthMargin:300,heightMargin:300});
});
</script>

<script language="JavaScript">
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) 
field.value = field.value.substring(0,maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}
// End -->
</script>
  </head>
  <body>
    <div id="body" class="index">
      <div id="container">
    {xingTemplate menu}
	  <div class="index_header">
	  <div style="overflow:hidden;width:795px;margin:0 auto;background:#42DDE6;">
	  {if empty($cookienum)}
          <table border="0" cellpadding="0" cellspacing="0" width="795">
            <tr><td>
                <img src="template/images/index/header_r1_c1.gif" width="196" usemap="#m_header_r1_c1"/></td><td>
                <img src="template/images/index/header_r1_c2.gif" width="202" /></td><td>
                <img src="template/images/index/header_r1_c3.gif" width="197" /></td><td>
                <img src="template/images/index/header_r1_c4.gif" width="200" /></td>
            </tr>
          </table>
          <map name="m_header_r1_c1" id="m_header_r1_c1">
            <area shape="rect" coords="69,116,196,151" href="reg.php" alt="注册" />
          </map>
		  {else}
		<div style="float:left;padding:20px 0 0 20px;"><img src="face/{$uid}.jpg" onerror=src="face/noavatar.gif" width=60 height=60 style="padding:1px;border:solid 1px #FFF;" /></div>
		<form method="POST" action="index.php?action=addlog">
		<div style="float:left;padding-left:20px;padding-top:10px;">
		<h3 style="font-size:14px;">我要记录生活这一刻！</h3>
		<textarea style="width:400px; height:50px;" name="logcontent" onkeydown="textCounter(this.form.logcontent,this.form.remLen,160)" onkeyup="textCounter(this.form.logcontent,this.form.remLen,160)"></textarea>
		<input type="hidden" name="uploadvalue" id="uploadvalue" value="" />
		<div id="target">上传图片</div>
		<div id="open" style="display:none;">
		<iframe width="100%" height="75" frameborder="0" src="upload3.php?cid={$cid}"></iframe>
		</div>
		<script>
		$("#target").click(function () {
		$("#open").toggle();
		});
		</script>
		</div>
		<div style="float:left; padding:30px 20px;"><input type="submit" value="发 布"  style="height:50px; width:60px;" name="" /></div>
<div style="float:left;padding-top:30px;padding-left:20px;">还剩<input style="font-size:30px;border:none;background:none;" readOnly maxLength="1" size="1" value="160" name="remLen">字。</div>
		</form>
		{/if}
		</div>
        </div>
        <div id="mainWrapper" class="clearfix">
          <div id="container">
            <div id="mainWrapper" class="clearfix">
              <div id="conWrapper">
                <!--话题推荐-->
                <style>.huati{ font-size:12px; padding:5px 10px; margin:10px 15px;border: solid 1px #9AE3E9;overflow:hidden;}.huati ul{ margin:0; height:23px; padding:0;overflow:hidden;}.huati ul li{list-style:none;float: left; margin-right:10px; height:23px; line-height:23px;}.huati ul li a{ text-decoration:underline;} .htb{ font-weight:bold;} 
                </style>
                <div class="huati">
                  <ul>
                    <li class="htb">今日话题
                    </li> 
                   {$qiCate->getSetCate(1)}
                    
                  </ul>
                  <ul>
                    <li class="htb">本周话题</li>
                    {$qiCate->getSetCate(2)}  
                  </ul>
                  <ul>
                    <li class="htb">官方话题</li>
                    {$qiCate->getSetCate(3)}
                  </ul>
                </div>
                <div class="inner_conwarpper">
<div class="manu">
	{$page_url}
</div>
                 <ul class="clearfix" id="txweblist">
				  {loop $mlogs as $key=>$mlog} 
                    <li>
                    <a class=userphoto href="user.php?id={$mlog['uid']}" target="_blank">
                     <img src="face/{$mlog['uid']}.jpg" onerror=src="face/noavatar.gif" width=48 height=48 style="padding:1px;border:solid 1px #ccc;" /></a>
                    <div class=followcount>
                      <a href="reply.php?id={$mlog['id']}">回复</a>
                    </div>
                    <p class=statusContent>
                      <a href="user.php?id={$mlog['uid']}" class="username">{$mlog['truename']}</a>@
                      <a href="topic.php?id={$mlog['cid']}">{$mlog['cname']}</a>{if !empty($mlog['aid'])}<br />
<span id="biuuu"><a href="{$mlog['photo']['filepath']}"><img src="phptoimg.php?w=100&img={$mlog['photo']['filepath']}"  style="width:100px;padding:2px;border:solid 1px #ccc;"/></a></span>
{else}{/if}<br /> {$mlog['content']}{date('Y-m-d H:i:s',$mlog['cTime'])}
                    </p>
                    {loop $mlog['comms'] as $key=>$comm}
                    <div style='padding:10px 0 0 5px; border-left:solid 1px #CCC;'>
                      <a href="user.php?id={$comm['uid']}" style="font-size:12px;">{$qiUser->getUserName($comm['uid'])}</a>
                      <span style="font-size:12px;color:#999;">{$comm['content']}  {date('Y-m-d H:i:s',$comm['cTime'])}
                      </span>
                    </div>
					 {/loop}
                    </li>
                    {/loop} 
                  </ul>
                </div>
              </div>
              <div id="side">
                <!--adad-->
                <div style="text-align:center;padding-top:10px;">
				<?php echo $qiAds->getAD(1); ?>
                </div>
                <div class="topicslist">
                  <div class="index_title01 bold">推荐话题
                    <img class="newIcon" src="template/images/transparent.gif"/>
                  </div>
                  <div class="topicsContent">
                    <ul>
                    	
                      {$qiCate->getSetCate(4)}
                      
                    </ul>
                  </div>
                </div>
                <div class="side_container">
                  <div class="side_cont">
				  <h1>最新用户 <a>更多>></a></h1>
                    <ul class="side_people_list">
					{loop $users as $key=>$user}
                      <li>
                        <a href=user.php?id={$user['id']}>
                          <img src="face/{$user['id']}.jpg" onerror=src="face/noavatar.gif" width=48 height=48 class="followpreview" alt="{$user['truename']}" title="{$user['truename']}" /></a>
                      </li>
					  {/loop}
                    </ul>
                  </div>
                  <div style="clear:both;"></div>
                </div>
                <!--右侧话题推荐开始-->
                <div class="topicslist">
                  <div class="index_title01 bold">最新话题
                    <img class="newIcon" src="template/images/transparent.gif"/>
                  </div>
                  <div class="topicsContent">
                    <ul>
                    {$qiCate->getNewCate()}
                    </ul>
                  </div>
                </div>
                <div class="moreLink01">
                  <a class="funLink" href="topic.php?action=all">查看更多热门话题</a>>>
                </div>
				<div style="text-align:center;">
				<p>Support</p>
				<p><a href="rss.php">RSS 2.0 FOR 时尚起义</a></p>
				<p><a href="mm/"><img src="template/images/mobile.gif" /><br />Mobile Mlog For 时尚起义</a></p>
				</div>
                <!--右侧话题推荐结束-->
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div id="index_footer">
      <div class="inner_index_footer">
        <div class="fri_link">友情链接：
		{loop $links as $key=>$link}
          <span class="webside">
            <a target="_blank" title="{$link['name']}" href="{$link['url']}">{$link['name']}</a>
          </span>
		 {/loop}
        </div>
        <div class="index_copy"> © 2009 - 2010&nbsp;&nbsp;
          <a href="http://www.miibeian.gov.cn" target="_blank"></a> 
          <a href="cms/"  >关于我们</a> | 
          <a href="index.php?action=links"  >友情链接</a> 
          <?php echo $siteicp; ?> <br />
          <a href="<?php echo $versionurl; ?>"  target="_blank">Powered by 
            <?php echo $version; ?></a> 运行时间 {$xingTemplate->template_Runtime()}
        </div>
      </div>
    </div>
    <!--统计-->
    <div style="display:none;">{$sitecount}
    </div>
    <!--反馈-->
    <a href="{$versionurl}topic.php?id=10003"  target="_blank" id="feedbackbutton"></a>
  </body>
</html>